﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;
using DevExpress.XtraBars.Helpers;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraTreeList.Nodes;

namespace CyberERP
{
    public partial class CyberERP : RibbonForm
    {
        public CyberERP()
        {
            InitializeComponent();
            InitSkinGallery();  
            //InitTreeListControl();
            //InitGrid();

        }
        void InitSkinGallery()
        {
            SkinHelper.InitSkinGallery(rgbiSkins, true);
        }
        BindingList<Person> gridDataList = new BindingList<Person>();
        //void InitGrid()
        //{

        //}

        //void InitTreeListControl()
        //{
        //    Projects projects = InitData();
        //    DataBinding(projects);
        //}
        //Projects InitData()
        //{
        //    Projects projects = new Projects();
        //    projects.Add(new Project("Project A", false));
        //    projects.Add(new Project("Project B", false));
        //    projects[0].Projects.Add(new Project("Task 1", true));
        //    projects[0].Projects.Add(new Project("Task 2", true));
        //    projects[0].Projects.Add(new Project("Task 3", true));
        //    projects[0].Projects.Add(new Project("Task 4", true));
        //    projects[1].Projects.Add(new Project("Task 1", true));
        //    projects[1].Projects.Add(new Project("Task 2", true));
        //    return projects;
        //}
        //void DataBinding(Projects projects)
        //{
        //    treeList.ExpandAll();
        //    treeList.DataSource = projects;
        //    treeList.BestFitColumns();
        //}
    }
}